import React, { Component } from 'react'
import './App.css'
import Router from './Router/Router'
import { NavLink, withRouter } from 'react-router-dom'

class App1 extends Component {
    constructor() {
        super();
        this.state = {

        }
    }
    jump(url) {
        // go goBack replace...
        // console.log(this.props);
        this.props.history.push(url)
    }
    render() {
        return (
            <div>
                <Router></Router>
            </div>
        )
    }
}
// 通过路由提供的withRouter 来给App1这个非路由组件增加路由的属性和方法 得出的新组件叫App
const App = withRouter(App1)
// const ComPlus = withRouter(ComPure)
export default App
